package com.example.yunhailutong.zhongtan.util;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;

import com.example.yunhailutong.zhongtan.R;


public class IntentUtil {


    public static void startActivity(Activity activity, Class<?> cls) {
        Intent intent = new Intent(activity, cls);
        activity.startActivity(intent);
        activity.overridePendingTransition(R.anim.push_left_in, R.anim.alpha_discover_in);
    }

    public static void startActivity(Context activity, Class<?> cls) {
        Intent intent = new Intent(activity, cls);
        activity.startActivity(intent);
    }
}
